import request from '@/utils/request'
// 获取考勤设置列表
export function getAttendanceSetting(id) {
  return request({
    url: `http://localhost:8989/api/v1/attendancesetting/${id}/form`,
    params: id,
  })
}

// 保存考勤设置列表
export function SaveAttendanceSetting(params) {
  return request({
    url: 'http://localhost:8989/api/v1/attendancesetting/saveOrUpdate',
    data: params,
    method: 'post'
  })
}

// 获取请假设置列表
export function getAttendanceLeaveSetting(id) {
  return request({
    url: `http://localhost:8989/api/v1/attendance-leave-setting/${id}/form`,
    params: id,
  })
}

// 保存请假设置列表
export function SaveAttendanceLeaveSSetting(params) {
  return request({
    url: 'http://localhost:8989/api/v1/attendance-leave-setting/saveOrUpdate',
    data: params,
    method: 'post'
  })
}


